package com.imooc.utils;



/**
 * 判断金额工具类
 */
public class MathUtil {

    private static final Double MONEY_RANGE=0.01;

    public static Boolean bijiao(Double b1, Double b2){
        double abs = Math.abs(b1 - b2);
        if(abs<MONEY_RANGE){
            return true;
        }else{
            return false;
        }
    }
}
